<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[#assign path = var_contextpath + var_resrootpath + "/" + var_syscfg.sscTemplate/]
[#include "../inc/common/pager.html"]
[#include "../inc/user/userOrderList.html"]
[#include "../inc/user/mergeOrderList.html"]

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="Generator" content="ECSHOP v2.7.2" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="Keywords" content="" />
	<meta name="Description" content="" />
	<title>用户中心-我的订单</title>
	<link rel="shortcut icon" href="favicon.ico" />
	<link rel="icon" href="animated_favicon.gif" type="image/gif" />
	<link rel="stylesheet" type="text/css" href="${path}/css/style.css" />
</head>
<body>
[#include "../inc/common/head.html"]
<div class="block box">
 <div id="ur_here">
  当前位置: <a href="${var_contextpath}/index.xhtml">首页</a> <code>&gt;</code> 用户中心 </div>
</div>

<div class="blank"></div>
<div class="block clearfix">
  [#include "../inc/common/leftMenu.html"]
  <div class="AreaR">
    <div class="box">
     <div class="box_1">
      <div class="userCenterBox boxCenterList clearfix" style="_height:1%;">
       <h5><span>我的订单</span></h5>
       <div class="blank"></div>
       
       [#-- 读取订单列表自定义标签。参数说明：par_memberid（登录会员ID），par_pagesize（分页大小），par_pageindex（当前页码）--]
	    [@ecs_userorderlist 
	    	par_memberid = var_member.bmbId 
	    	par_pagesize = var_pagesize 
	    	par_pageindex = var_pageindex]
	    	
	    	[#-- 读取订单列表自定义宏 --]
	 	    [@ecs_ud_userorders par_userOrderPM = var_userOrderPM /]
	 	
	 	  	[#-- 读取分页标签。参数说明：par_total（总记录数），par_href（请求路径）--]
		  	[@ecs_goodspager 
		  		par_total = var_userOrderPM.total 
			 	par_href = "${var_contextpath}/user/order.xhtml?"
				par_pagesize = var_pagesize 
			 	par_pageindex = var_pageindex 
		  	/]
	     [/@ecs_userorderlist]
       
       <div class="blank5"></div>
       <h5><span>合并订单</span></h5>
       <div class="blank"></div>
        <form name="formOrder">
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td width="22%" align="right" bgcolor="#ffffff">主订单:</td>
              <td width="12%" align="left" bgcolor="#ffffff">
                 [#-- 读取合并订单列表自定义标签。参数说明：par_memberid（登录会员ID）--]
	             [@ecs_mergeorderlist par_memberid = var_member.bmbId]
	         	     [#if var_mergeOrders ??]
		    		    [@ecs_ud_molist par_mergeOrders = var_mergeOrders selectId = "mainOrder"/]
		    	     [/#if]
	             [/@ecs_mergeorderlist]
              </td>
              <td width="19%" align="right" bgcolor="#ffffff">从订单:</td>
              <td width="11%" align="left" bgcolor="#ffffff">
                 [#-- 读取合并订单列表自定义标签。参数说明：par_memberid（登录会员ID）--]
	             [@ecs_mergeorderlist par_memberid = var_member.bmbId]
	         	     [#if var_mergeOrders ??]
		    		    [@ecs_ud_molist par_mergeOrders = var_mergeOrders selectId = "fellowOrder"/]
		    	     [/#if]
	             [/@ecs_mergeorderlist]
              </td>
              <td width="36%" bgcolor="#ffffff">&nbsp;
              	<input id="mergeOrderBtn" type="button" class="bnt_blue_1" style="border:none;"  
              		value="合并订单" onclick="user_mergeOrder();"/>
              </td>
            </tr>
            <tr>
              <td bgcolor="#ffffff">&nbsp;</td>
              <td colspan="4" align="left" bgcolor="#ffffff">订单合并是在发货前将相同状态的订单合并成一新的订单。<br />收货地址，送货方式等以主定单为准。</td>
            </tr>
          </table>
        </form>
      </div>
     </div>
    </div>
  </div>
</div>
<div class="blank"></div>
[#include "../inc/common/bottomNav.html"]
[#include "../inc/common/footer.html"]

</body>
</html>
